<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'通知反馈'"></u-navbar>
		<uc-content>
			<view style="background: #fff;padding: 20rpx 40rpx;">
				<u-form :model="feedbackForm" ref="feedbackForm" label-width="100px" style="padding: 24rpx;">
					<u-form-item label-position="left" label="反馈描述">
						<u-input type="textarea" :border="border" placeholder="请填写反馈内容" v-model="feedbackForm.feedbackContent" />
					</u-form-item>
				
				</u-form>
				
				<u-button @click="submit" type="primary" style="margin: 24rpx;">提交</u-button>
			</view>
		</uc-content>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				border:true,
				noticeId:"",
				feedbackForm:{

				},
			}
		},
		methods: {
			
			onLoad(e) {
				console.log(e.ucId)
				
				this.noticeId=e.ucId
			},
			onShow() {
				
			},
			submit(){
			this.utils.request("/api/app/notice/updateMyNoticeFeedback",{ucId:this.noticeId,feedbackContent:this.feedbackForm.feedbackContent}, "post", "app", true).then(res => {
                uni.navigateBack({
                    delta:1
                })
			}).catch(error => {
				console.log(error)
			})
		
		
			}
		}
	}
</script>

<style>

</style>
